home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tricks of the Mac Game Programming Gurus
/
TricksOfTheMacGameProgrammingGurus.iso
/
More Source
/
C⁄C++
/
Chess++ 3.0.1
/
source
/
CChessPane.h
< prev
next >
Wrap
Text File
|
1993-04-25
|
1KB
|
40 lines
/****
* CChessPane.h
*
* Class representing the Chess Board pane and its contents.
*
* Copyright © 1993 Steven J. Bushell. All rights reserved.
*
****/
#pragma once
#include <CPane.h>
#include "CChessPiece.h"
struct CChessPane : public CPane {
CChessBoard *itsChessBoard;
/** Contruction/Destruction **/
void IChessPane(CView *anEnclosure, CBureaucrat *aSupervisor,
short aWidth, short aHeight,
short aHEncl, short aVEncl,
SizingOption aHSizing, SizingOption aVSizing);
/** Drawing **/
void Draw(Rect *area);
void DrawSelectedSquare(void);
void ShowSelectedSquare(void);
void ShowMove(short rank, short file);
/** Mouse **/
void DoClick(Point hitPt, short modifierKeys, long when);
void RegisterMove(short rank, short file);
Boolean HitSamePart(Point pointA, Point pointB);
/** Cursor **/
void AdjustCursor(Point where, RgnHandle mouseRgn);
};
pascal void TrackPiece(void); // routine to track piece while dragging